package com.itheima.movies.service.impl;

import com.itheima.movies.dao.MoviesDao;
import com.itheima.movies.domain.Movies;
import com.itheima.movies.service.MoviesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MoviesServiceImpl implements MoviesService {

    @Autowired
    private MoviesDao moviesDao;
     @Override
    public List<Movies> findAll() {

         return moviesDao.findAll();
    }
}
